/* 
 * File:   ComplexConverter.h
 * Author: Gab'z
 *
 * Created on 4 juin 2012, 09:42
 */

#ifndef COMPLEXCONVERTER_H
#define	COMPLEXCONVERTER_H

#include "UnaryOperator.h"

namespace calculator {

    class ComplexConverter : public UnaryOperator {
        friend class CommandMap;

    public:

        virtual ~ComplexConverter();
        std::string isExecutable() const;
        ComplexConverter* clone() const;

        const Number* apply(const Number* n) const throw (ArithmeticException);

    private:
        ComplexConverter(const std::string name);
        ComplexConverter(const ComplexConverter& orig);
    };
}

#endif	/* COMPLEXCONVERTER_H */

